package router

import (
	"6-17yk/client/handler"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {
	User := r.Group("/user")
	{
		User.POST("/smsSend", handler.SmsSend)
		User.POST("/login", handler.Login)
	}
	institution := r.Group("/institution")
	{
		institution.GET("/list", handler.InstitutionList)
	}
	team := r.Group("/team")
	{
		team.GET("/list", handler.TeamList)
	}
	doctor := r.Group("/doctor")
	{
		doctor.GET("/list", handler.DoctorList)
	}
	order := r.Group("/order")
	{
		order.POST("/create", handler.OrderCreate)
	}
	userDoctor := r.Group("/userdoctor")
	{
		userDoctor.GET("/list", handler.UserDoctorList)
	}

	r.GET("/chat", handler.Chat)
	r.POST("/upload", handler.Upload)
}
